Add unit tests for MetropolisHastings

As per david's suggestion. 
Good call suggesting unit tests. It seems my application code made the same transposition error as the numeric code.