some fixes

Added WPF test project