refactered testing out to go testing and pulled key out of gen