spec helper functional