Added test code for the firefox scratchpad