Add all defined unit

i write i test and a method for return all unit defined , i hope it is helpful