Fixed logic bug in top-level test controller

The logic for "end testPart" was out of sync with the lower
level JQTI+ logic slightly, causing it to fail to close the session
and record a result properly.

This will be applied as a hot-fix to M3 shortly...