Fix injectProperties for subclasses and added unit test