add a test for hashref options in new()