Unit testing: improve mockFirebase service and add a couple more basic tests.