Add code for testing hall effect