added NUnit tests