May should be refactored this three tests in a single one plus a data provider.