Testing if input is function.