solve API.pm problema add tests and gitignore