Fix: Invalid comparison of data to string in tests