Added unit test for submit method.