added many new tests; implemented 'evenly spaced points'; added parameters for threshold and evenly spaced points