Add tests for principals