Moved test program to file