Adding dependency and improving assert message