added unit tests
Merge branch 'master' of https://github.com/marknutter/firebase-resource