example of how unit testing works in database testing