updates to add an interface for enhanced phpunit testing and converted the firebaseTest to phpunit