Fix potential issue with NullTimer returning null context. Simplify null metrics.
upgrade xunit to v2
fix build script