Fix build
NH-3402
Fixed compilation bugs.
Removed dependency on SharpTestEx.