Check is_callable after all other checks, tests refactoring, see #2