Make services registered in ConfigureServices work in Configure
- Added a test

#114
Removed the null check for IApplicationBuilder