improvements to updating test_entry and assignment

improve the test entry status field updates
and the assignment end_datetime, improve naming convention
for methods and vars, improve documentation