added angular services and relative tests