Implemented begin and submit test functions