Add test for atomic transactions; works as expected (more tests required though); relates to #64