Add tests for DataManager
Update tests to use explicit setExpectedException instead of using annotation