Added compiler tests, improved debug messages on web console.