various issues revealed by test