Displaying 'Edit' link for logged user + tests