mocha tests added
phpunit tests added
filter refactor
many bug fixes