Added custom gid method.
Added dev_major, dev_minor and gid tests.