Added more tests and verbrosity to ex17 script.