fix purchases method test where database is out of sync.