added nunit tests