replaced methods with static functions

converted methods to static functions, can be used in other tests
moved more methods to static functions in tests
Merge pull request #55 from pkit/tests_fixes

replaced methods with static functions in tests