optimized recording of membrane potentials, minor changes in tests