Added a test() method.