Bug fix

- Fixed bug that caused error in IE 10 w/ie8 standards mode
- Added test cases to validate some input params