Fix injectProperties for subclasses and added unit test
Merge pull request #16 from BrynCooke/master

Fix bug in injectProperties when dealing with subclassing