See #5624, implement functional test
See #5624, implement functional test