pregnancy or UTI?

So last couple days I've been urinating more and I been taking azo the past two days thinking it's a uti, but could I be pregnant my period was 10 days long and kinda heavy with some severe cramps leading to minor cramps that didn't feel like regular menstrual ones,  it ended the 15th. Before my period on dec 31st I had a ruptured ovarian cyst. I don't want to test because I don't want to waste money on more negatives. But the 31st when I went to the hospital they did blood work wouldn't they of found I was pregnant if I was? My period was Jan 6th-15th