Code for testing the accuracy of phase and contrast estimation of photon-limited interference fringes.