add the ability to set a test token

This is going to be used for tests from the client