Functional tests for `wp shell`

It turns out it's not that hard to test the output from `wp shell`, once you realize that it's just another process that reads input from STDIN.