wrapping unit tests in a convenience function