Feature/api routes tests

@kchunterdeluxe maybe you can glance over this. Still a WIP.....