To carry out a hypothesis test you assume the null hypothesis is true, then consider how likely the observed value of the test statistic was to occur. If this likelihood is less than a given threshold, called the significance level of the test, then you reject the null hypothesis.