Added assertions to private methods