services factories tests