Added classes to create rules for the edges and tests for some of them