Yes, there's that as well. I'm not sure to what extent should you make you tests depend on your lib code, but repeating the same thing over and over always feels a little weird. Another option is to define a constant in the test's context.