Fixed confidence rest, added test