Cas is not anymore static, add unittests