add env to rollbar
move test stuff into test