tests for assigning route