fixed bug with test
now redirecting when done with node spec