more ensure condition added to the test