Added a test for the AbstractOptionsFactory