Improved moodlelib_test to illustrate wrong style of writing unit tests