added test for charge