Changed tests to use the testing library.