Add failing tests
Also check that ids are not null