updated route test to use functools.wraps