add equals logic for mobile devices and add some tests