added test for charge
proper indentation
Merge pull request #1 from martflu/master

added test for charge