Added tests for AlgorithmBuilder.
555ni written, and it seems to be working! I would still like to add a test to verify that the tricky stuff is working.