Fixed the initialized mechanism for test purpose