Add tests and fixtures for learn! function