Fix a pair of undefined function references

Looked like typos.
Altough I've added a test just to reassure myself I've done the right thing.
Merge pull request #123 from keynslug/fix/undef_funs

Fix a pair of undefined function references