fix invalid model access in placement

Signed-off-by: Jan Dvořák <mordae@anilinux.org>
implemented two trivial placement tests

Signed-off-by: Jan Dvořák <mordae@anilinux.org>