adding funcs and mockito