added test methods for edge detecting