fixing filters with  promises
fixed angular update errors. Next: directives testing