added an example test and code from angularFire-seed