Adding unit tests for begins_with

Signed-off-by: Vinzenz Feenstra <evilissimo@gmail.com>