adding exists method and updating tests