Use tests and examples infrastructure

Close #83