fixed problem - incorrect object in then function meant check there was failing