Fix karma config and implements some tests
Add quit button.