Added tests for validator service