fix gmres bug (closes #5)
add new tests