added cluster and edge tests
added tests to margin namespace