Added test script and some basic tests