fixed inverse power and cpp tests
fixed python tests for inverse potential