A very useful class when doing tests in database