Add option LONG_TEST
Fix warnings