Added a somewhat more complicated test case