Add backend test for buildlog. And some tiny fixes.