fixed assert in test