Added test for prepare readme and prepare metadata and fixed bug with substitutions. All tests passing.