Repository test for class