Adding postgresql tests