Added tests for custom routes
Fixed bugs in profile name tests