Generic tests for optional and mandatory properties