Correct implementation of test