added unit test for the commonController