modified atomic memory to relaxed
added some more tests