Run tests headlessly against phantom, cleanup dependencies