fixing inequality bug, and adding noise to tests