fixed null pointer in test base