Even more unit tests and AGI functions

Change-Id: Ibdd3aabf85fdb364837ccb688d9cdb373e414a46
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>