Add test structure. Fix error in debug string formatting for errors
Add tests, promises and new error detection
Update gitignore
Remove act delay