changed testmethod so it can be used later