improved assert precision in tests