Test fixes, including Andrew Johnstone's

Both on travis and my own systems, routes were not loaded due to an extra file_get_contents() call to localized routes.