Added tests for bug #254 (fixed in #256)

As requested in #255 :-)