Added unit test for the placement abstraction
Added implementation for is_valid