If you don't have insurance (mine are free with insurance YET a pee test costs me a copay! Crazy!) you might want to try a planned parenthood or a clinic of some sort. I know planned parenthood offers payment based on a sliding scale...the more you make the more you pay, the less you make the less you pay.
Depends on what you're testing for. A blood pregnancy test is typically $50-$75. Outrageous, yes!
Im in the UK and they are free at your doctors but they dont do them unless they are necessary