Code Evaluation Algorithms and Tests