test _f setters

Signed-off-by: Mattias Andrée <maandree@operamail.com>
move out test mapping functions from test.c into ramps.c

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