Implement working callback and add basic test for fann_set_callback