test program to find limits