Removed unnecessary SQL count query from one-to-one and many-to-one lazy loading. Fixed unit tests.