Fixed audit not always setting correct display value for optional relati...

...ons

Fixed unit tests not being able to access dbcontext after adding TaskChild that derives from Task