Removed trailing slash fix for more consistent behaviour and added first unit tests for routing.