added unittests for issue 47 of phpbrowscap