Spec tests and VotingLock fix