Added runOnUiThread and tests for Promise