Adding unit test for overload of NotThrow that returns the value