adding a test to verify #588