added implementations of simple rule and unit tests

Please check if it is any unit test you are misssing