add test program

the test program is in the file "test"