[fem.femeoc] fixed unsafe integer conversion
[functions.flattop] added first draft to playground
[test.function] added base FunctionTest to derive from
[test.functions_flattop] added test
[functions.flattop] moved out of playground, tests succeed