Add constraints and unit test to Academy.

Fixes #77