add unittest for nozzle