Phase test solving