would my test have been accurate?

i last had sex 6 weeks ago, i am on the pill and we used a condom. i have had two withdrawal bleeds since. im always paranoid about pregnancy and experienced some spotting a few weeks ago which was a first. i have no pregnancy symptoms. i took a pregnancy test last week and this week, both negative. are tests accurate at 6 weeks? it was a boots own brand one