Incorporate suggestions and enforce supported os count
Incorporate suggestions 2
Use allow instead of expect in local_system

It does not make any sense to use expect just for stubbing purposes so I
replaced it by allow.