Fix composite primary keys test

Fix an error in test for composite_primary_keys. As current implementation of assertion doesn't check correct behavior with composite keys.