added unit test to testsuite