Testing repository functionality