Invalid key testing