RebuildNotedb: Fix guice bindings Also add unit test to prevent breaking it again without notice. Change-Id: I1d32489cb45f8634511fecceb9006c05db108171