refactor the gem out of the test lab