getting rid of hard coded test values for margin and similarity boolean