Add unittests to DiffractionTests.