Added functional test to verify #1764