Issue 30: Optimizer routine needs tests

fixes #30 
Reading the comments my guess is that he wanted a simple test to show that it can find maxima for two cases: one where there is a single local maxima, and one where there are two.  It seems like a reasonable idea.