Moving before_script to bash file

This is only a stub no actual changes will take effect for the tests. Additional documentation of variables