Fix tests for phantom.