fix dodgy equals methods and add corresponding test; allow browser opening to be disabled