add some tests.

Signed-off-by: Flycoding <Flycoding@yeah.net>