testing a method