fix tests for resource_meta check
split tests for resource relationship into different module