Print incremented buildNumber, which is really stored, to the log...

instead of base one. Also added test to check if increment works properly.