added unittest for cdi module