pin cram and fix tests