Merge pull request #2 from a0x77n/dev

Add test cases.