Bug fix for unit test when run against postgres version less than 9.2