I prefer to keep testing code outside of the primary implementation unless absolutely necessary.