updating test to write exception message from model tests