creating unit tests for RequestClassFactory