fixing ci build

setting up api credentials before running test. Added a generic method
to spec helper to set creds.