added test for submit