Added unit tests & new route handler

Added the first 3 unit tests & the new route handler