negative to positive

my test was negative but then positive. why? am I pregnant? I'm freaking.