Added checking for callbacks if this callbacks is an anonymous function
fixed small mistakes
Added tests for check a namespaces
Fixed small mistakes