Can ovary cysts or endometriosis cause a negative pregnancy test?

I read online that cysts that have ruptured can cause negative pregnancy tests. Do any of you know anything? Can it be true?