This section on Common Statistical Tests uses an example on faculty publications to show users how to perform a one-sample t test. The discussion includes one-tailed and two-tailed tests.
This chapter of the "Concepts and Applications of Inferential Statistics" online textbook describes in detail the Kruskal-Wallis test, it's formulas, variables, and procedures using an example involving wine-tasters.