Mock out various pushState env cases for testing
Fix flag conditional
Do not strip search component in getFragment

Was causing incorrect parameter handling under devices without pushState when the pushState flag is enabled.

Fixes #62
Merge pull request #81 from jhudson8/push-state-tests

Mock out various pushState env cases for testing