Added function to test cube rotation and file reading.