more regression tests from trac tickets