test compensation, fix bugs