Fix friend invitation tests

The invitation view is expecting user primary key and not profile one.