Further I created some unit test which should cover all relevant scenarios for the created function. Signed-off-by: Simon Pelczer <templum.dev@gmail.com>