fixed profile url parsing and made tests for it