add ns.router undefine
add ns.page test and fix bug with redirect