Basic Purchase model tests

Signed-off-by: Tommaso Visconti <tommaso.visconti@gmail.com>