Added basic api repo synchronization tests

Should fix #548, #547