Tests: Fix profilewriter test

Change-Id: Id3bb7e80baa5f26d1b76fb85d19fcb45a0595b05
Reviewed-by: Daniel Teske <daniel.teske@digia.com>