Added unit tests for ApplicationContext