Add Guardfile.

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

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