Added unit test for chargepoint registration