Add tests and Psi method for three index maps (fixes #295, #294)

@mtoader as promised.

Thanks.

/cc @coocood