Fixes issue with tests and transition + fixes popboxes not being removed from dom.

Fixes #16