legacy tests: migrate test51