Switched to version from https://github.com/okfn/foundation, also added a test.

Signed-off-by: Martin Koistinen <mkoistinen@gmail.com>