Fixed some issues around routing setup, added some route tests for user and device views