add test() method