undo pr#129 temporarily
updated tests
fixes #166 non empty $location.search() issue