Added unit tests using NUnit