added support for option positioning (||pos in attribute value)
added tests for option positioning