Add unit test for class and request