Update mastermind tests and code