wrote test for mode ties