test, regression test for has_many with instance dependent scope.