Fixed memory leak in compatibility functions
Added skipif section to test cases