testing fuinctions separeted