v1.8 Added two tests for wavefunction