Add ugly test code that pass the phases for CPU