#509 saveRepository instead of create + rename
#509 modified tests to correspond to new params
#509 little improvements