You will ultimately need to attach all the roles you have developed to a transport request in order to get them to your Test system. Do that now and release the request, and after the dev refresh you can import the request back into the dev system to put all the roles back. Check with the Basis guys doing the refresh that exported change requests will survive the refresh - i.e. they are not overwriting /usr/sap/trans. They shouldn't...
You can use the mass transport functionality in PFCG to make this easier. Simply transport all the roles with a name starting with a "Z", for example.
Steve.