To dream that you are taking a pregnancy test, may be a metaphor for a new stage you are beginning in your life (such as a new relationship, job or friendship). You may feel that you are being put to the test as to whether you are prepared or ready for these changes.
If you are nervous that you might be pregnant, this dream is a literal reflection of your anxieties about getting pregnant.
[1]