Convert all '[' tests to '[[', closes #25