Add debug code

- Check whether constructor ran properly
- Check whether thread started properly