The functional test cases are written in shpec.
To run the tests install shpec with the installer.
$ bash -c "$(curl -L https://raw.github.com/rylnd/shpec/master/install.sh)"
To manually run the test cases, from the project root:
$ env SHPEC_ROOT=test/shpec shpec