added unit tests and external browser tests