Fix for test_api_submit
Merge pull request #236 from AndreiH/test-api-submit-fix

Fix for test_api_submit