added test program which demonstrates and checks singleton construction.