Added some test code which has been kept commented.