setting inverse by relation
added tests for determining inverse
condensing spec setup