Added unit tests around member injection.