fix all tests and start to implements all edges