Working h_sync and test bench