add test module.

if it is possible, please write all test thing in this file. will be
easier to clean in the future.