moved tests to own directory; cleaned up repetitious client creation

trying to cleanup by having tests in their own dir, used a different package name for the tests

moved the client creation function that all the tests were implementing into one place and tests reuse it