remove realpath as it fails on glob patterns
Fix test