added test class for relations