Add tests for config parsing

Signed-off-by: Pekka Enberg <penberg@iki.fi>