Added more documentation to the testing code.