Bug fix trityper reader, plus added test that would have detected the bug