Fix assert in test case
More logging