added unit tests for lazy loading