Fix regexp in unit test

Signed-off-by: anton <haglundanton+github@gmail.com>
Add update function

Signed-off-by: anton <haglundanton+github@gmail.com>