Improve the cas test