added tests, Policy class