#194: updated error message
#194: fixed specs of repositories controller