Add tests to #4.

Signed-off-by: crynobone <crynobone@gmail.com>