fixed rockspec and main() test
fixes #1 - return args array index not value