Update test code
Added basic building placement criteria
Renamed Resource to ResourceType