Blood test

Does putting blood on a pregnancy test really work? I've seen people do it and wondered about it