function arguments checker implemented; tests added