add a test for classes with options