Added unit test for the test() method

This is to make sure that method isn't broken