refactored modalservice to allow for generic modals to be created. Refactored tests to communicate this.