First attempt at writing generic test cases. Bear with me, this is a work in progress.