fix smartwrap bug and add crash command for testing

the smartwrap bug is the cause of https://github.com/appium/appium/issues/3481