Implement test & refactor crash reporter