restructure spec helper