added test coverage for inheritance

moved provider mappings' provider creation to injector.getInstance time
instead of injector.getMapping time