Add tests passing invalid number of arguments to each function; add createSubBuffer tests