Tested foreign key constraints
Added profiles query test