updated test and added is type functions.