Added tests for the new setting allowEmpty

Added test cases for typical use