Added tests for the base optimizer class, including queuebased.
Added tests for the base optimizer class, including queuebased.

fdiehl/apsis,FrederikDiehl/apsis,fdiehl/apsis,FrederikDiehl/apsis,fdiehl/apsis