fix phantom tests and build latest dist