More unit tests for HasOne
Added test for guarded HasOne