Add CDI unit test.