Hcg tests

Maria
Can someone please explain what hcg tests do? We're do u buy them? When do you start testing? Thanks!!