More correct method of testing