Change an error message and add basic test.sh for tests