Added unique validator tests

Fixed bug in services