Attempting to reproducing test case with original code