Added unit tests for potential field