Refactoring this test code so we can use it in other parts.
using variables instead of hardcoded values.