Add browser tests.

All but one of them passes against my sandbox at the moment.

Change-Id: I7f33fdbae404244649605849c55dd4115036958a
Merge "Add browser tests."