Add specs for dependency exceptions.