added production_url
use more of framework variables; added tests