Adding test cases to check valid keys and values method calls