implement fully automated test for submit