mds-kbdc: compile-layout: test return

Signed-off-by: Mattias Andrée <maandree@operamail.com>
mds-kbdc: compile-layout: m bug fix + more test cases

Signed-off-by: Mattias Andrée <maandree@operamail.com>