TESTS for #547