Adding encode library and Unit test infrastructure.