Modified tests to use a constant for epsilon, instead of magic number