Test is updated to work with wrapped to_python method