Adding tests for revert and __init__