Enh: added tests for APIS-582.