Fixed premature sandbox destruction, fixed async tests(use promises)