refactoring duplicative test for posting koans to api