Raise Exception if no usable key is present
namespace missing keys error and add missing require. fix test case