Port API to tasty framework

Conflicts:
	tests/TestAPI.hs