adds some integration test to prep for refactoring