tests for writing routes