add tests for basic routing algorithm