Negative test but baby in ultrasound

Has anyone had a situation where your body is acting pregnant and ultrasound shows you’re pregnant but every pee test on clear blue or frer is still showing negative. Baby measuring 5 weeks!

Dr says it might not be viable. Anyone any ideas?