added support for code generating expectations into the log to simplfy creating test setup