Adding test to check that class resources are registered for lazy services
Fixing tests, registering class resources for lazy services