factored unit tests to look a little nicer