I managed to find the solution. There are 2 things that need to be done:
Start the android/ios emulator.
Move the testing file into /integration_test folder.
After that you will be able to interact with the Firebase emulator.