fixed tests, forgot to pass in a key, which cant be null