Refactor compile expression test