Added attribute tests and disconnect obs on done
Optimizations for polling code + code compression