added code for module tests
made counter tests pass