adds tests for set* functions, fixes setDelay function