add test case for fetch associated via rest