Moving helpers to a separate file.
WIP: adding a test route.