added a simple test console environment for in the browser
proper checking of undefined
convert arguments for new Quarter to integers.  This prevents an infinite loop.