removed byte arrays from program tests
replaced simple strings in program tests by regex to match more complex operations
added optimize methods to optimizers