Add /z/* route for export, make routes optional, add tests for /z /j/ /p routes