Added test to check the behaviour of warn() function.
Added test for check the behaviour of docunit.