added test for ppromises filter
write filter bug fixed