Added nUnit tests