fixing instability of CDI tests

Closes #764
shouldn't it be started from largest scope to smallest?