method for test