added unit test
modified tester