Add more tests to cover invalid keys corner cases scenarios