Automatically set correct tags for tests