Test against -core and -expectations in the ci build

this script is largely copied from -core.