created a nit test function