Added unit tests for isBrowser()
Added unit tests for acceptsJson()