We need tests that this function throws errors with it should