Added test class and methods.