Demonstrate apply styles crash (PR #444)

Note, updated unit tester is required because this test will throw an
exception.
Additional whitespace robustness (Needs upstreaming)