implemented some CustomUserEvent Unit Tests and fixes for TextFormWindow