added testing for sub-pixel fit