Moved test and added integration using rest template