basic cast regression test