added rspec for pg helper