improve assertion output for unit test