Standard exit codes implemented. Messages in test.sh fixed.