changed reference bit tests