test using dup