10 weeks and bleeding and very scared

Lucy
I went to the gp last night with light bleeding (which is brown not red) they have referred me to the early pregnancy unit for tests. Has anyone had these tests? What do they do?