A new test for text with tex commands
Add `getAndCheckDefault` function
Add `getFactoryOrDefault`
Add `addIfNotDefault`
Check factory defaults for `{X|Y|Z}Color` of Axes
Check factory defaults of Legend edge/fill  color
Merge branch 'useFactory'

Tested on R2014a and R2014b
Conditionally cycle paths

When a path ends in a NaN, it should not be cycled as it is explicitly
broken in MATLAB, but it seems that `pgfplots` does not take NaNs into
account when closing the path.
Some issue links in ACID
Merge branch 'cyclePaths' to fix #317, #49, #404

Tested on R2014a, R2014b
Merge remote-tracking branch 'broele/TextFormatingTest'