refactor gmail spec