making some sort of sense of madness that is firebase, passing transaction test