Tests and metrics