Automatic test

adding tests framework to avoid bad builds uploading to staging. 
added support to environment variable specifying location of secret configuration file.