Adds unittests on auth

Implements: bp unit-tests
Change-Id: I504af1532a2955c778f0456870b08be2bee64176