Removed legacy code junk.
Separated test cases for the isSubmitted.