Added tests for automatic eager loading