delete white space and refactor route internals spec test