Adding lib build, sample tests