Add tests.

Added tests for Mdcodes methods.
**Note**: I recommend using 4 spaces instead of tabs to indent (set in IDE)