Add tests for use as a related manager