Add more complete bash tests