unit tests for fetch_related