testing repository functionality