contacts controller implementation and test