add test program for and