Added inferential tests

A pile of inferential tests have been added. No unit tests yet though,
sorry.