Added test.sh and test-debug.sh for debugging.