changed queue test to test if data is -1, not a bit in state