added tests and code cleanup, but cannot verify that tests works, not sure how to run test through Nunit or RTF? Is there a Dynamo Test Framework that is separate?