Added test method to reduce boilerplate code
Added missing type methods
Added unit test for the restrictions chaining