Added Container class with tests for dependency injection