Fixed bugs in submission unit tests