add tests demonstrating issue #548