unit testing crud