Revert "Add new test."

This reverts commit f2a867936f952e8f16520aecc5fe6531713ec562.
Revert "Revert "Add new test.""

This reverts commit 21607ed6e3cd0eab3d003d44d7b0b4aa5da80319.
Fix compiler error on clang. fix bug.