add test for non-declared-dynamic warnings (CLJ-1233)