Updated realtimestft code and added test for it in src