added user function support in neofilter
adjusted test_neofilter to new functions
added testcases and fixed bugs