did a lot of work to get phantom tests to pass