Adding basic test case related functions.