fix for rustc 0.12.0-pre-nightly
add metadata and test cfg