Added messages to doesitfail and added assertion to doesitwork