Added tests for contacts controller