Route setting test and a major bug fixed.