WIP: Add test to assert state of submission changes

When a user closes an exercise for a submission that needs input check that the
submissions state is changed to done.
This either needs to call the app endpoint, or the test needs to be moved into `Attempt` test suite.