added environment test route and trigger error routes from lecture 8.