giza: inital tests, and minor bug fixes