fix expected errors
put unnecessary codes outside of `should'