added test

Signed-off-by: Tsuyoshi Ozawa <ozawa.tsuyoshi@gmail.com>
fix to pass test

Signed-off-by: Tsuyoshi Ozawa <ozawa.tsuyoshi@gmail.com>
Updated to pass more tests.

Signed-off-by: Tsuyoshi Ozawa <ozawa.tsuyoshi@gmail.com>