added more unit tests for components