fixes relations ships and sets up session mocking