adds test for charge view.

need to add a proper test for post request