Remove dom element after tests.
Added tests for modals.
Fixed qr scanning.