assert an object has some keys