add tests for build routes