Create a python script to find the longest words in a dictionary.
dict = {"Hello": 5, "World": 6, "this": 4, "is": 2, "a": 1, "test": 4}
def longest_words(dict):
    longest_words = []
    max_length = 0
    for word, length in dict.items():
        if length > max_length:
            longest_words = [word]
            max_length = length
        elif length == max_length:
            longest_words.append(word)
    return longest_words