coding style: use '[' instead of 'test'