A pack of 30 lasts a while for me, but yes I know, $40+ is a bit on the high side as far as price goes simply for nitrate testing.
After regular testing for years though, working "for" my water supplier (and becoming very familiar with my make up water), keeping logs, and watching the trends have together provided enough data to to give enough general knowledge about my water conditions to keep testing to the minimum, unless something bizarre happens or changes .
Plenty of water changes are a lot cheaper than testing, and my testing trends have shown that every other day, 30% water changes keep parameters very stable, and where I prefer to have them.
Because my source water is Lake Michigan, it is so large that water from it is very stable, and has great buffering capacity (with an alkalinity of @ 100ppm), low nitrate, and a pH of about 7.5 direct from the tap. So I am lucky, and may not need to test as much as those with river sources that are much more variable, season to season, day to day.