My extra-hard test cases for tutorial 4 (copy of https://gist.github.com/4006014)