MDL-36804 Assign attempt history: Fix course unit tests

Handle missing attemptreopenmethod in add/update instance.