test method and result printing