Add test cases and fix a bug.
Add AliasTest and fix bugs.
Update test cases and fix bugs.
Add test cases and fix bugs.