switch tests to expect library