added unit tests + routes