updated tests and discovered strange errors