fix deprecated usage
Factor the metadata into test filenames

Closes #221
Closes #226
auto merge of #231 : alexcrichton/cargo/burningtree, r=burningtree