got dup nilclass error fixed, need to rewrite test that is pending