Fixed tests to work with JS implementation of votes