Employee smelled hydraulic oil while operating 375 Cat excavator. Employee stopped running the machine and went to the back of the machine to check the fluid level. He stepped on the battery box with his right foot and while raising his left foot, he hooked it on the battery box cover latch. This caused his left foot to bend under creating a foot strain.