- added isAjax()
- made sure tests are always run in development environment
- cleanups