unit testing in browser simple example