PL-31543: added tests