Fix tests. Thanks @ralphbean!