Fixes for tests not running under travis/phantomjs + added option names ...

...normalization and some tests for it.

Running via phantomjs produces:

    phantomjs ./tests/runner.js ./tests/tests.html
    
    Took 68ms to run 28 tests. 28 passed, 0 failed.

Testing via browsers also passes (as it did before)