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.