added tests for required element
added flags for required/invalid states
added another required element testcase
handle required elements
Merge remote-tracking branch 'refs/remotes/sjhewitt/required-element-b' into 0.8
Test cleanup – did away with problematic "test" global and explicit need to teardown (now done automatically).
Added "required" example (#136, #63).