added print test method