Local tests now work correct

Added error message for incorrect remote
Inputed groups are correctly used now
Fixed bug that occurs when replics are written more than required