added test and fixed problem in initializing comment