tests some functions