Use fixed is_writable function for test