Fixed error in initFluid and fixed test script