corrected test method