fix few tests in emulated mode