controller test and new features.

test to match closeModal and init variables into scope
new init variables into scope.
change "close" param inject into closeModal scope function.
change "close" on return modal into "onClose" promise function.