Added test program for memory model.