test for similarity ratio