refactored tests again
refactored tests with use of helper module