Test: unit test for repeat method
JSContext: implementation of repeat method