Added tests

Included public tests along with a helpful script.
To test, valgrind is required. After that, just run "make tests"