Writing test program