Separate routes on example
Improve routes, utils and tests
Move test to index.js