Start of expect code to test setup

This code is semi robust.