#12 added tests for multi-threadded behaviour