test for profiles equals method